<template>
    <div class="twoHeroContainer">
        <div class="topHero">
            <div class="topDescription">
                <h1>GAMES</h1>
                <p>Our dream is to create games that as many people as possible play for years and that are remembered
                    forever.</p>
                <RouterLink to="/games">
                    <button class="seeGamesBtn">SEE GAMES</button>
                </RouterLink>
            </div>
            <div class="topImg">
                <img src="/src/assets/img/home/topHero.webp" alt="">
            </div>
        </div>
        <div class="bottomHero">
            <div class="bottomImg">
                <img src="/src/assets/img/home/bottomHero.webp" alt="">
            </div>
            <div class="bottomDescription">
                <h1>CAREERS</h1>
                <p>Join us to create games that excite and help our players around the world make memories.</p>
                <RouterLink to="/careers">
                    <button class="seeCareers">SEE CAREERS</button>
                </RouterLink>
            </div>
        </div>
    </div>
</template>

<script setup>
import {RouterLink} from 'vue-router';
</script>

<style scoped>
.twoHeroContainer {
    position: relative;
}

.topHero,
.bottomHero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding: 0 6%;
    position: relative;
    overflow: hidden;
    height: 60%;
}

.topHero::before,
.bottomHero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/src/assets/img/home/twoHeroBackground.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.topHero {
    flex-direction: row;
}

.topDescription,
.bottomDescription {
    width: 40%;
    z-index: 1;
}

.topImg,
.bottomImg {
    width: 50%;
    z-index: 1;
}

.topImg img,
.bottomImg img {
    margin: 0 auto;
    width: 100%;
    height: auto;
}

.topDescription h1,
.bottomDescription h1 {
    font-size: 45px;
    margin-bottom: 22px;
}

.topDescription p,
.bottomDescription p {
    font-size: 22px;
    line-height: 1.5;
}

.topDescription a,
.bottomDescription a {
    display: block;
    margin-top: 30px;
}

.seeGamesBtn,
.seeCareers {
    background-color: white;
    color: #000;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    height: 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
</style>